<!DOCTYPE HTML>
<html lang="en-US">
	<head>
		<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
		<title>Device Detail</title>
		<meta name="viewport"
			content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
		<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/buijs/lib/latest/bui.css" />
		<link rel="stylesheet" href="css/style.css" />
		 <link rel="stylesheet" type="text/css" href="./css/font.css"/>
		<style type="text/css">
			.cent {
				background-color: #fafafa;
				height: 100%;
			}

			.text-r {
				margin-right: 5px;
			}
		</style>
	</head>
	<body>
		<div class="bui-page bui-box-vertical">
			<header>
				<!-- 固定顶部区 -->
				<div class="bui-bar" style="background-color: #FFFFFF;">
					<div class="bui-bar-left">
						<a class="bui-btn" onclick="bui.back();"><i class="icon-back" style="color: black;"></i></a>
					</div>
					<div class="bui-bar-main" style="color: black; font-weight: 700;">
						Device Detail
					</div>
					<div class="bui-bar-right">
					</div>
				</div>
			</header>
			<main>
				<!-- 固定中间滚动内容区 -->
				<div class="cent">
					<div style="background-color: #FFFFFF;">
						<ul class="bui-list" style="margin: 10px;">
							<li class="bui-btn bui-box">
								<div class="bui-icon " style="background-color: #eee;"></div>
								<div class="span1"></div>
								<div class="item-text text-r">change avatar</div>
								<i class="icon-listright"></i>
							</li>
							<li class="bui-btn bui-box" id="name">
								<div class="span1">name</div>
								<div class="item-text text-r">Srinivasan</div>
								<i class="icon-listright"></i>
							</li>
							<li class="bui-btn bui-box" id="age">
								<div class="span1">age</div>
								<div class="item-text text-r"><span>not set</span></div>
								<i class="icon-listright"></i>
							</li>
							<li class="bui-btn bui-box">
								<div class="span1">phone</div>
								<div class="item-text text-r"><span>7835842949</span></div>
								<i class="icon-listright"></i>
							</li>
						</ul>
					</div>
					<div style="background-color: #FFFFFF;">
						<ul class="bui-list" style="margin: 10px;">
							<li class="bui-btn bui-box" id="changePassword">
								<div class="span1">change Password</div>
								<div class="item-text"></div>
								<i class="icon-listright"></i>
							</li>
							<li class="bui-btn bui-box" id="bankCard">
								<div class="span1">bank card</div>
								<div class="item-text"><span></span></div>
								<i class="icon-listright"></i>
							</li>
						</ul>
					</div>
					<div style="background-color: #FFFFFF;">
						
						<ul class="bui-list" style="margin: 10px;" id="loginOut">
							<li class="bui-btn bui-box">
								<div class="span1" style="text-align: center;color: red;">Log out of current account</div>
							</li>
						</ul>
					</div>
					
				</div>

			</main>
			<footer>
				<!-- 固定底部   -->
			</footer>
		</div>
		<script src="https://cdn.jsdelivr.net/npm/buijs/lib/zepto.js"></script>
		<script src="https://cdn.jsdelivr.net/npm/buijs/lib/latest/bui.js"></script>
		<script>
			bui.ready(function() {
				// 所有控件及方法需要在这里执行
				$("#name").on("click", function(e) {
					bui.load({
						url: "./modifyname.html",
						param: {
							parameter: "parameter"
						}
					});
				})
				$("#age").on("click", function(e) {
					bui.load({
						url: "./modifyage.html",
						param: {
							parameter: "parameter"
						}
					});
				})
				$("#modifypassword").on("click", function(e) {
					bui.load({
						url: "./modifyage.html",
						param: {
							parameter: "parameter"
						}
					});
				})
				$("#bankCard").on("click", function(e) {
					bui.load({
						url: "./bankCardList.html",
						param: {
							parameter: "parameter"
						}
					});
				})
				$("#loginOut").on("click", function(e) {
					//这是退出登录
					bui.load({
						url: "./login.html",
						param: {
							parameter: "parameter"
						}
					});
				})
			})
		</script>
	</body>
</html>
